package com.cn.hu.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * EmployeeUserRef entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "employee_user_ref", catalog = "huarui")
public class EmployeeUserRef implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer employeeId;
	private Integer userId;
	private Timestamp createDate;
	private Timestamp modifyDate;

	// Constructors

	/** default constructor */
	public EmployeeUserRef() {
	}

	/** minimal constructor */
	public EmployeeUserRef(Timestamp createDate, Timestamp modifyDate) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	/** full constructor */
	public EmployeeUserRef(Integer employeeId, Integer userId,
			Timestamp createDate, Timestamp modifyDate) {
		this.employeeId = employeeId;
		this.userId = userId;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "employee_id")
	public Integer getEmployeeId() {
		return this.employeeId;
	}

	public void setEmployeeId(Integer employeeId) {
		this.employeeId = employeeId;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date", nullable = false, length = 19)
	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

}